[
"<?php echo $queryString ?>",
    <?php if ($searchResults != null): ?>
    <?php if ($searchResults->count() > 0): ?>
    [
    <?php foreach ($searchResults as $collection): ?>
               "<?php echo $collection ?>",
    <?php endforeach; ?>
    ]
    <?php endif; ?>
    <?php endif; ?>
]